RE: LS2J security exception Posted by ~Tony Quetjipylitjip on 1.Sep.03 at 12:42 PM using a Web browser Category: Domino Server Release: 6.0.2 CF1 Platform: Windows 2000
Hi,
here's the stacktrace output:
ERROR: unknown option a in -a
Program is terminating!
01.09.2003 14:36:42 Agent printing: Updating IDE Files
01.09.2003 14:36:42 Agent error: java.lang.SecurityException
01.09.2003 14:36:42 Agent error: at lotus.notes.AgentSecurityManager.checkPropertiesAccess(Unknown Source)
01.09.2003 14:36:42 Agent error: at java.lang.System.getProperties(System.java:522)
01.09.2003 14:36:42 Agent error: at URLReader.download(URLReader.java:28)
01.09.2003 14:36:42 Agent error: at java.lang.reflect.Method.invoke(Native Method)
01.09.2003 14:36:42 Agent error: at lotus.domino.JavaConnectInvoker.invoke(JavaConnectInvoker.java:42)
01.09.2003 14:36:42 Agent error: at java.lang.reflect.Method.invoke(Native Method)
01.09.2003 14:36:42 Agent error: at lotus.domino.JavaConnectLoader.invoke(JavaConnectLoader.java:266)
the method code is as following:
import java.net.*;
import java.io.*;
public class URLReader {
public boolean on = false;
public void download(String url, String filename) throws Exception
{
try{
System.getProperties().put( "proxySet", "true" );
System.getProperties().put( "proxyHost", "proxy1" );
System.getProperties().put( "proxyPort", "8080" );
URL urlname = new URL(url);
File outputFile = new File(filename);
FileOutputStream out = new FileOutputStream(outputFile);
BufferedInputStream in = new BufferedInputStream(urlname.openStream());
int input;
while ((input = in.read()) != -1)
{
out.write(input);
}
in.close();
out.close();
}
catch(java.lang.SecurityException e){
e.printStackTrace();
}
}
}
Thanks for your help,
René
LS2J security exception (~Tony Quetjipyl... 1.Sep.03)
. . RE: LS2J security exception (~Tanita Quetfre... 1.Sep.03)
. . RE: LS2J security exception (~Tanita Quetfre... 1.Sep.03)
. . . . RE: LS2J security exception (~Tony Quetjipyl... 1.Sep.03)
. . . . . . RE: LS2J security exception (~Tanita Quetfre... 1.Sep.03)
. . . . . . . . RE: LS2J security exception (~Tony Quetjipyl... 1.Sep.03)
. . . . . . . . . . RE: LS2J security exception (~Tanita Quetfre... 1.Sep.03)
. . . . . . . . . . . . I got it! (~Tony Quetjipyl... 2.Sep.03)
Document Options
Search this forum
RSS Feeds